package com.example.bankmanage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.bankmanage.dto.rep.CardExportReqDTO;
import com.example.bankmanage.dto.rep.CardReqDTO;
import com.example.bankmanage.dto.rep.CreateCardReqDTO;
import com.example.bankmanage.dto.rep.UpdateCardReqDTO;
import com.example.bankmanage.entity.PageBean;
import com.example.bankmanage.entity.cards;
import jakarta.servlet.ServletOutputStream;

import java.io.OutputStream;

public interface CardService extends IService<cards> {

    PageBean<cards> fetchCardList(CardReqDTO requestParam);

    cards getCardDetail(Integer cardId);

    void createCard(CreateCardReqDTO requestParam);

    void updateCard(Integer cardId, UpdateCardReqDTO requestParam);

    void exportCard(CardExportReqDTO exportDTO, OutputStream outputStream);
}
